package demo2;

/**
 * @Author 12629
 * @Description：
 */
public class Test {
    public static void drawMap(Shape shape) {
        shape.draw();
    }
    public static void main(String[] args) {
        /*drawMap(new Cycle());
        drawMap(new Rect());
        drawMap(new Flower());
*/
        Flower flower = new Flower();
        flower.draw();
        flower.draw();
        flower.draw();


        new Flower().draw();
        new Flower().draw();
        new Flower().draw();

    }
}
